package com.hunttown.mes.rpc.api;

import com.hunttown.mes.rpc.domain.TransportPurchaseDetailDTO;
import com.hunttown.mes.rpc.domain.query.TransportPurchaseDetailDTOQuery;
import com.hunttown.common.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-05-19 01:20:06
 */
public interface TransportPurchaseDetailRpcService {

    TransportPurchaseDetailDTO insert(TransportPurchaseDetailDTO transportPurchaseDetailDTO);

    Boolean updateInfoById(TransportPurchaseDetailDTO transportPurchaseDetailDTO);

    Boolean updateInfoByQuery(TransportPurchaseDetailDTOQuery transportPurchaseDetailDTOQuery);

    TransportPurchaseDetailDTO selectById(Integer id);

    TransportPurchaseDetailDTO selectObjByQuery(TransportPurchaseDetailDTOQuery transportPurchaseDetailDTOQuery);

    Page<TransportPurchaseDetailDTO> getListForPage(TransportPurchaseDetailDTOQuery transportPurchaseDetailDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> selectSumCount(TransportPurchaseDetailDTOQuery dtoQuery, String element);
}